package com.woshua.processkeepmodel.style;

import android.graphics.Color;
import android.graphics.Paint;
import android.text.TextPaint;
import android.text.style.CharacterStyle;

public class BoldSpanStyle extends CharacterStyle {
    @Override
    public void updateDrawState(TextPaint tp) {
//        tp.setFakeBoldText(true);//一种伪粗体效果，比原字体加粗的效果弱一点
         tp.setStyle(Paint.Style.FILL_AND_STROKE);
         tp.setColor(Color.RED);//字体颜色
         tp.setStrokeWidth(2f);//控制字体加粗的程度
    }
}
